package routers

import (
	"github.com/gin-gonic/gin"
	"wx-api/adx-api/handlers"
	"wx-api/adx-api/services/se_sspslot"
)

func Route_SspSlot(router *gin.RouterGroup) {
	adx_slot := router.Group("/sspslot")
	adx_slot.GET("/list", func(c *gin.Context) {
		se_sspslot.List(handlers.NewBaseController(c))
	})
	adx_slot.POST("/add", func(c *gin.Context) {
		se_sspslot.Add(handlers.NewBaseController(c))
	})
	adx_slot.POST("/edit", func(c *gin.Context) {
		se_sspslot.Edit(handlers.NewBaseController(c))
	})
	adx_slot.GET("/info", func(c *gin.Context) {
		se_sspslot.Info(handlers.NewBaseController(c))
	})
	adx_slot.GET("/flag", func(c *gin.Context) {
		se_sspslot.Flag(handlers.NewBaseController(c))
	})
	adx_slot.GET("/stats", func(c *gin.Context) {
		se_sspslot.Stats(handlers.NewBaseController(c))
	})
	adx_slot.GET("/all", func(c *gin.Context) {
		se_sspslot.All(handlers.NewBaseController(c))
	})
}
